var routes = [
  {
    path: '/index',
    name: 'index',
    component: () => import('../views/Index.vue'),
    children: [ //二级路由

      {
        path: '/index/home',
        name: 'home',
        component: () => import('../views/index/Home.vue'),
      },
      {
        path: '/index/order',
        name: 'order',
        component: () => import('../views/index/Order.vue'),
      },
      {
        path: '/index/tuan',
        name: 'tuan',
        component: () => import('../views/index/Tuan.vue'),
      },
      {
        path: '/index/Mine',
        name: 'mine',
        component: () => import('../views/index/Mine.vue'),
      },
    ]
  },
  {
    path: '/',
    redirect: '/index',

  }
]

export default routes;